package com.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/nginx")
public class NginxController {
    @Value("${server.port}")
    int port;

    @RequestMapping("/myNginx")
    public String myNginx(Model model){
        model.addAttribute("msg",port);

        return "index";
    }
}
